//
//  CCLabelBMFontBatch.m
//  ProjectL
//
//  Created by Nguyen Tan Loc on 10/16/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "CCLabelBMFontBatch.h"

@implementation CCLabelBMFontBatch

-(void) addToBatch:(CCSpriteBatchNode *)batch
{
    for (int i = _string.length - 1; i >= 0; i--)
    {
        CGPoint gPoint;
        CCSprite *spr = (CCSprite *)[self getChildByTag:i];
        gPoint = [spr.parent convertToWorldSpace:spr.position];
        [spr retain];
        [spr removeFromParent];
        [spr setPosition:gPoint];
        [batch addChild:spr];
        [spr release];
    }
}

@end
